﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TR_ScholarshipContract.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.TR_ScholarshipContract" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>รายการสัญญาของผู้ได้รับทุนการศึกษา 
</title>
    <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" /> 
</head>
  
     <script type="text/javascript">   

    
           function onTextChange(sender) {
                    if (sender.get_value() == "") {
                        sender.set_text("");
                    }
          } 
          
</script>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>     
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Panel6">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel6" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server">
    </telerik:RadAjaxLoadingPanel>  
    
    <asp:Label ID="lblID" runat="server" Visible="False"></asp:Label>    
    <asp:panel ID="Panel6" runat="server" >
    <table width="1000" cellpadding="0" cellspacing="0">
          <tr>
          <td colspan = "3">
        <div class="moduleDivSlim1000">
        <div class="moduleDivBottom1000">
        <table align="center" width ="980px" >
        <tr>
            <td align="left" class="tableHeader">
                รายการสัญญาของผู้ได้รับทุนการศึกษา  
</td>
        </tr>
        </table>
        <table width ="980px" align="center">
        <tr>
        <td >
        <asp:Panel ID="PanelGrid" 
            runat="server" 
            Width="980px" 
            Height="350px" ScrollBars="Auto" >
                <telerik:RadGrid ID="RadGrid2" runat="server" AllowFilteringByColumn="True" AllowAutomaticDeletes="True"
                    AllowMultiRowEdit="True" AllowMultiRowSelection="True" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True" 
                    EnableAJAXLoadingTemplate="True" GridLines="None" 
                    OnItemCommand="RadGrid2_ItemCommand" Skin="Outlook" Width="99%"> 
                    <%--onitemdatabound="RadGrid2_ItemDataBound">--%>
                    <MasterTableView 
                    AllowMultiColumnSorting="True" 
                    CellSpacing="-1" 
                    ClientDataKeyNames="scholar_fund_seq" 
                    CommandItemDisplay="Top" 
                    DataKeyNames="scholar_fund_seq"                                         
                    NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                        <CommandItemTemplate>
                            <table width="99%">
                                <tr>
                                    <td align="left">
                                       &nbsp;
                                    </td>
                                    <td align="right">
                                    </td>
                                </tr>
                            </table>
                        </CommandItemTemplate>
                        <Columns>                           
                            <telerik:GridBoundColumn 
                                DataField="train_seq" 
                                UniqueName="train_seq" 
                                Visible="false">
                            </telerik:GridBoundColumn>
                            
                            <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                CurrentFilterFunction="Contains" DataField="closed" FilterControlWidth="100%" 
                                HeaderText="สถานะ" ShowFilterIcon="false" UniqueName="closed" Visible="false">
                                <HeaderStyle HorizontalAlign="Center" Width="50px" Wrap="False" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                CurrentFilterFunction="Contains" DataField="ref_no" FilterControlWidth="100%" 
                                HeaderText="เลขที่อ้างอิง" ShowFilterIcon="false" UniqueName="ref_no">
                                <HeaderStyle HorizontalAlign="Center" Width="100px" Wrap="False" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                CurrentFilterFunction="Contains" DataField="training_type_descr" 
                                FilterControlWidth="100%" HeaderText="หลักสูตรการอบรม" ShowFilterIcon="false" 
                                UniqueName="training_type_descr" Visible="false">
                                <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                            </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn 
                            DataField="scholar_fund_seq" 
                            HeaderText="รหัส" 
                            ShowFilterIcon="false"
                            FilterControlWidth="100%" 
                            CurrentFilterFunction="Contains" 
                            AutoPostBackOnFilter="true"
                            UniqueName="No"
                            Visible="false">
                            <HeaderStyle HorizontalAlign="Center" Width="80px" />
                            <ItemStyle HorizontalAlign="Center" Width="80px"/>
                        </telerik:GridBoundColumn>
                        
                            <telerik:GridTemplateColumn 
                               AutoPostBackOnFilter="true" 
                                CurrentFilterFunction="Contains" 
                                DataField="scholar_type_descr" 
                                HeaderText="ประเภททุน"
                                FilterControlWidth="100%"                                                     
                                ShowFilterIcon="false" 
                                UniqueName="scholar_type_descr">          
                                <ItemTemplate>              
                                    <asp:LinkButton ID="cmDetail" runat="server" 
                                        Text='<%# Eval("scholar_type_descr") %>' 
                                        OnClientClick='<%# string.Format("return openDetails(\"{0}\");", Eval("scholar_fund_seq")) %>'>
                                    </asp:LinkButton>
                                </ItemTemplate> 
                                <HeaderStyle HorizontalAlign="Center" />              
                            </telerik:GridTemplateColumn> 
                            
                            <telerik:GridBoundColumn 
                                DataField="scholar_fund_descr" 
                                HeaderText="ระดับการศึกษา" 
                                ShowFilterIcon="false"
                                FilterControlWidth="100%" 
                                CurrentFilterFunction="Contains" 
                                AutoPostBackOnFilter="true"
                                UniqueName="scholar_fund_descr">
                                <HeaderStyle HorizontalAlign="Center" />
                                <ItemStyle HorizontalAlign="Left" />
                            </telerik:GridBoundColumn>
                            
                            <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                CurrentFilterFunction="Contains" DataField="training_group_descr" 
                                FilterControlWidth="100%" HeaderText="ประเทศ" ShowFilterIcon="false" 
                                UniqueName="training_group_descr" Visible="false">
                                <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                            </telerik:GridBoundColumn>
                            
                            <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                CurrentFilterFunction="Contains" DataField="schedule_text" 
                                FilterControlWidth="100%" HeaderText="วงเงินอนุมัติ" ShowFilterIcon="false" 
                                UniqueName="schedule_text">
                                <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                            </telerik:GridBoundColumn>
                            
                            <telerik:GridBoundColumn
                                AutoPostBackOnFilter="true"
                                CurrentFilterFunction="Contains"
                                HeaderText="เงื่อนไขคุณสมบัติ"
                                ShowFilterIcon="false"
                                FilterControlWidth="100%"
                                DataField="schedule_text"
                                UniqueName=""
                                Visible="false">  
                                <HeaderStyle HorizontalAlign="Center" Wrap="False" />                              
                            </telerik:GridBoundColumn>
                            
                            <telerik:GridBoundColumn
                                AutoPostBackOnFilter="true"
                                CurrentFilterFunction="Contains"
                                FilterControlWidth="100%"
                                HeaderText="สถานะ"
                                ShowFilterIcon="false"
                                DataField="schedule_text"
                                UniqueName="">  
                                <HeaderStyle HorizontalAlign="Center" Wrap="False" Width="80px"/>                              
                            </telerik:GridBoundColumn>
                            
                            <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                CurrentFilterFunction="Contains" DataField="date_training_start" 
                                FilterControlWidth="100%" HeaderText="วันที่เริ่มอบรม" 
                                ShowFilterIcon="false"
                                DataFormatString="{0:d}"  
                                UniqueName="date_training_start">
                                <HeaderStyle HorizontalAlign="Center" Width="80px" Wrap="False" />
                            </telerik:GridBoundColumn>
                            
                            <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                CurrentFilterFunction="Contains" 
                                DataFormatString="{0:d}" 
                                DataField="date_training_end" 
                                FilterControlWidth="100%" HeaderText="อบรมถึงวันที่" ShowFilterIcon="false" 
                                UniqueName="date_training_end" >
                                <HeaderStyle HorizontalAlign="Center" Wrap="False" Width="80px"/>
                            </telerik:GridBoundColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                    </MasterTableView>
                    <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" 
                        EnableRowHoverStyle="True" ReorderColumnsOnClient="True">
                        <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
                    </ClientSettings>
                </telerik:RadGrid>
            </asp:Panel>
        </td>
    </tr>
    </table>
</div>
</div>
</td>
</tr>
</table>
</asp:panel>
</div>
</form>
</body>
</html>